package com.yazdee;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class Home extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TextView browseCatalog = (TextView)findViewById(R.id.homelink1);
		browseCatalog.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(Home.this, SearchResults.class);
				i.putExtra("Browse", true);
				startActivity(i);
			}
		});
		
		TextView searchProd=(TextView)findViewById(R.id.homelink2);
		searchProd.setOnClickListener(new View.OnClickListener(){
			public void onClick(View v){
				Intent i=new Intent(Home.this, SearchResults.class);
				i.putExtra("Search",true);
				startActivity(i);
			}
		});
    }
}